package my.vo;

import my.Interfaces.Savable;

/**
 * @author 星环
 * @date 2022/11/2 15:07:20
 * @description
 */
public abstract class Vo implements Savable<Vo>, Cloneable {

    protected int id;

    public abstract Vo getEmptyInstance();

    @Override
    public Vo clone() {
        try {
            return (Vo) super.clone();
        } catch (CloneNotSupportedException e) {
            throw new AssertionError();
        }
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }
}
